﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing.Drawing2D;

namespace Lib.Pieces
{
    class AShape : IShape 
    {
        GraphicsPath graph;
        Color color;
        public AShape(bool black = false)
        {
            if (black)
            {
                this.color = new Color(100, 100, 100);
            }
            else
            {
                this.color = new Color(200, 200, 200);
            }
            this.graph = new GraphicsPath();
            this.graph.AddLine(90, 90, 60, 10);
            this.graph.AddLine(60, 10, 40, 10);
            this.graph.AddLine(40, 10, 10, 90);
            this.graph.AddLine(10, 90, 30, 90);
            this.graph.AddLine(30, 90, 50, 30);
            
            this.graph.AddLine(50, 30, 60, 50);
            this.graph.AddLine(60, 50, 50, 50);
            this.graph.AddLine(50, 50, 45, 60);
            this.graph.AddLine(45, 60, 60, 60);
            
            this.graph.AddLine(60, 60, 70, 90);
            this.graph.AddLine(70, 90, 90, 90);
        }
        public System.Drawing.Drawing2D.GraphicsPath GetShape()
        {
            return this.graph;
        }

        public Color GetShapeColor()
        {
            return this.color;
        }
    }
}
